package dm.ast;

/**
 * DM的列数据类型
 */
public class DmColumnType {
    public DmDataType dtype;
    public int length;

    public DmColumnType(DmDataType dtype) {
        this.dtype = dtype;
        this.length = 0;
    }

    public DmColumnType(String typestring){
        this.dtype = DmDataType.getDmDataType(typestring);
        this.length = 0;
    }
    public DmColumnType(String typestring , int length){
        this.dtype = DmDataType.getDmDataType(typestring);
        this.length = length;
    }
}
